<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="org.imis.domain.*" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>

<link href="umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
    <script type="text/javascript" src="umeditor/third-party/jquery.min.js"></script>
    <script type="text/javascript" src="umeditor/third-party/template.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="umeditor/umeditor.config.js"></script>
    <script type="text/javascript" charset="utf-8" src="umeditor/umeditor.min.js"></script>
    <script type="text/javascript" src="umeditor/lang/zh-cn/zh-cn.js"></script>



</head>
<body>
<%String table=request.getParameter("table"); %>

<form action="savealter.action?table=<%=table %>&id=<%=request.getParameter("id")%>" method="post">


<%       if(table.equals("News")) {%>
<%News news = (News)request.getAttribute("news"); %>
标题:<input name="title" type="text" value="<%=news.getTitle()%>"><br/><br/>
正文:
<script type="text/plain" id="myEditor" name="content" style="width:1000px;height:240px;">
<%=news.getContent() %>
</script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor'); 
</script>
<br/>
<%} %>


<%       if(table.equals("Notice")) {%>
<%Notice news = (Notice)request.getAttribute("news"); %>
标题:<input name="title" type="text" value="<%=news.getTitle()%>"><br/><br/>
正文:
<div>
<script type="text/plain" id="myEditor" name="content" style="width:1000px;height:240px;">
<%=news.getContent() %>
</script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor'); 
</script>
</div>
<br/>
<%} %>


<%       if(table.equals("Forum")) {%>
<%Forum news = (Forum)request.getAttribute("news"); %>
标题:<input name="title" type="text" value="<%=news.getTitle()%>"><br/><br/>
正文:
<div>
<script type="text/plain" id="myEditor" name="content" style="width:1000px;height:240px;">
<%=news.getContent() %>
</script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor'); 
</script>
</div>
<br/>
<%} %>


<%       if(table.equals("Information")) {%>
<%Information news = (Information)request.getAttribute("news"); %>
标题:<input name="title" type="text" value="<%=news.getTitle()%>"><br/><br/>
正文:
<div>
<script type="text/plain" id="myEditor" name="content" style="width:1000px;height:240px;">
<%=news.getContent() %>
</script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor'); 
</script>
</div>
<br/>
<%} %>


<%       if(table.equals("RConsult")) {%>
<%RConsult news = (RConsult)request.getAttribute("news"); %>
标题:<input name="title" type="text" value="<%=news.getTitle()%>"><br/><br/>
正文:
<div>
<script type="text/plain" id="myEditor" name="content" style="width:1000px;height:240px;">
<%=news.getContent() %>
</script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor'); 
</script>
</div>
<br/>
<%} %>


<%       if(table.equals("PConsult")) {%>
<%PConsult news = (PConsult)request.getAttribute("news"); %>
标题:<input name="title" type="text" value="<%=news.getTitle()%>"><br/><br/>
正文:
<div>
<script type="text/plain" id="myEditor" name="content" style="width:1000px;height:240px;">
<%=news.getContent() %>
</script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor'); 
</script>
</div>
<br/>
<%} %>


<%       if(table.equals("StudentShip")) {%>
<%StudentShip news = (StudentShip)request.getAttribute("news"); %>
标题:<input name="title" type="text" value="<%=news.getTitle()%>"><br/><br/>
正文:
<div>
<script type="text/plain" id="myEditor" name="content" style="width:1000px;height:240px;">
<%=news.getContent() %>
</script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor'); 
</script>
</div>
<br/>
<%} %>


<%       if(table.equals("StuGroup")) {%>
<%StuGroup news = (StuGroup)request.getAttribute("news"); %>
标题:<input name="title" type="text" value="<%=news.getTitle()%>"><br/><br/>
正文:
<div>
<script type="text/plain" id="myEditor" name="content" style="width:1000px;height:240px;">
<%=news.getContent() %>
</script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor'); 
</script>
</div>
<br/>
<%} %>


<%       if(table.equals("StuHonor")) {%>
<%StuHonor news = (StuHonor)request.getAttribute("news"); %>
标题:<input name="title" type="text" value="<%=news.getTitle()%>"><br/><br/>
正文:
<div>
<script type="text/plain" id="myEditor" name="content" style="width:1000px;height:240px;">
<%=news.getContent() %>
</script>
<script type="text/javascript">
    var um = UM.getEditor('myEditor'); 
</script>
</div>
<br/>
<%} %>
<input type="submit" value="提交">
</form>






</body>
</html>